package com.ruoyi.gigi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 user
 *
 * @author gigi
 * @date 2024-01-30
 */
public class User extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 用户类型（0老师 1学生）
     */
    @Excel(name = "用户类型", readConverterExp = "0=老师,1=学生")
    private Integer type;

    /**
     * 工号/学号
     */
    @Excel(name = "工号/学号")
    private Long no;

    /**
     * 班级id
     */
    private Long classId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private Long phone;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 有效性（0无效 1有效）
     */
    private Integer flag;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String pic;

    /**
     * 班级名
     */
    @Excel(name = "班级名")
    private String className;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    public Long getNo() {
        return no;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPic() {
        return pic;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("no", getNo())
                .append("classId", getClassId())
                .append("name", getName())
                .append("phone", getPhone())
                .append("password", getPassword())
                .append("flag", getFlag())
                .append("pic", getPic())
                .append("className", getClassName())
                .toString();
    }
}
